// --------------------------------------------------------------------------------------------------------------------
// <copyright file="FIXFeedPlugin.cs" company="Open Trader">
//   Copyright (c) David Denis (david.denis@systemathics.com)
// </copyright>
// <summary>
//   |  Open Trader - The Open Source Systematic Trading Platform
//   |
//   |  This program is free software: you can redistribute it and/or modify
//   |  it under the terms of the GNU General Public License as published by
//   |  the Free Software Foundation, either version 2 of the License, or
//   |  (at your option) any later version.
//   |
//   |  This program is distributed in the hope that it will be useful,
//   |  but WITHOUT ANY WARRANTY; without even the implied warranty of
//   |  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
//   |  GNU General Public License for more details.
//   |
//   |  You should have received a copy of the GNU General Public License
//   |  along with this program.  If not, see http://www.gnu.org/licenses
//   |
//   |  Up to date informations about Open Trader can be found at :
//   |    http://opentrader.org
//   |    http://opentrader.codeplex.com
//   |
//   |  For professional services, please visit us at :
//   |    http://www.systemathics.com
// </summary>
// --------------------------------------------------------------------------------------------------------------------

namespace Org.OpenTrader.Framework.Forge.Plugins
{
    #region Using Directives

    using Org.OpenTrader.Framework.LiveObjects;
    using Org.OpenTrader.Framework.LiveObjects.Interfaces;

    #endregion

    /// <summary>
    /// The fix configuration schema.
    /// </summary>
    [ConfigurationField("SenderCompID", typeof(ConfigurationField.String), "Sender Computer ID", IsMandatory = true, DefaultValue = "SYSTEM")]
    [ConfigurationField("TargetCompID", typeof(ConfigurationField.String), "Target Computer ID", IsMandatory = true, DefaultValue = "ULNET_UAT")]
    [ConfigurationField("Host", typeof(ConfigurationField.String), "Hostname to connect to", IsMandatory = true, DefaultValue = "193.228.147.30")]
    [ConfigurationField("Port", typeof(ConfigurationField.Int), "Port to connect to", IsMandatory = true, DefaultValue = 9136)]
    [ConfigurationField("ODBCConnectionString", typeof(ConfigurationField.String),
        "Points to the database where ODDBCLogFactory and ODBCStoreFactory will store data", IsMandatory = true,
        DefaultValue = "Dsn=MULHOLLAND;trustedConnection=Yes;wsid=MULHOLLAND;DATABASE=QuickFIX")]
    [ConfigurationField("Password", typeof(ConfigurationField.String), "Password")]
    public abstract class FixFeedPlugin : FeedPlugin
    {
        #region Constructors and Destructors

        /// <summary>
        /// Initializes a new instance of the <see cref="FixFeedPlugin"/> class.
        /// </summary>
        /// <param name="descriptor">
        /// The descriptor.
        /// </param>
        /// <param name="container">
        /// The container.
        /// </param>
        public FixFeedPlugin(ILiveObjectDescriptor descriptor, ILiveObjectContainer container)
            : base(descriptor, container)
        {
        }

        #endregion
    }
}